package com.fxn.pixsample;

import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;

/**
 * description : MainAbility
 *
 * @since 2021-04-15
 */
public class MainAbility extends Ability {
    /**
     * onStart
     *
     * @param intent intent
     */
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setMainRoute(MainAbilitySlice.class.getName());
        String[] permissions = {"ohos.permission.CAMERA",
                "ohos.permission.MICROPHONE",
                "ohos.permission.WRITE_USER_STORAGE"};
        requestPermissionsFromUser(permissions, 0);
    }
}
